package com.songlanyun.modules.marketing.seckill.controller.admin;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.songlanyun.common.validator.ValidatorUtils;
import com.songlanyun.modules.marketing.groupbuy.entity.GroupBuyGoodsSku;
import com.songlanyun.modules.marketing.seckill.entity.SeckillGoodsSku;
import com.songlanyun.modules.marketing.seckill.service.SeckillGoodsSkuService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;



/**
 * 秒杀商品的规格表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 17:30:11
 */
@RestController
@RequestMapping("admin/seckill/sku")
public class SeckillGoodsSkuController {
    @Autowired
    private SeckillGoodsSkuService seckillGoodsSkuService;

    @GetMapping("/list/{seckillGoodsId}")
    public R list(@PathVariable("seckillGoodsId") Long seckillGoodsId) {
        List<SeckillGoodsSku> list = seckillGoodsSkuService.listByGoodIds(seckillGoodsId);

        return R.ok().put("list", list);
    }

}
